package com.red.mapper;

import com.red.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int addUser(
            @Param("name") String name,
            @Param("account") String account,
            @Param("password") String password,
            @Param("email") String email,
            @Param("level") int level
    );

    User[] selectAllUser(Map<String, Object> param);

    User selectUserByHouse(@Param("house_id") int house_id);

    int selectPages(List<Integer> level);

    User selectByAC(Map<String, String> param);

    User selectByA(String account);

    User selectByID(int uID);

    int deleteUsers(List<Integer> ids);

    int updateUser(User users);
}
